Bat command OverviewReading this article requires some basic dos concepts,Such as: drive letter, file, directory (folder), subdirectory, root directory, current directoryAdd /? For more information about the parameters, see the help documentation of
CMD character command use@\ \ Hide the echo of the command.~\ \ In for indicates the use of an enhanced variable extension;A string in set that represents the location specified using the extended environment variable;The bitwise inverse is
Common commands
Echo, @, call, pause, and REM (TIPS: Use: instead of REM) are several of the most common commands for batch file processing. We started from them.
===== Note ==============First, @ is not a command, but a special identifier for DOS
XP. CMD command Overview
For more information about a command, enter the HELP command name.Assoc displays or modifies file extension associations.At is the command and program to be run on the computer.Attrib displays or changes file attributes.Set
1, batch processing commonly used symbols:-Echo turns on echo or turn off the request Echo feature, or displays a message. If there are no parameters, the echo command displays the current echo setting syntax: @echo [{on|off}] echo{"Show Info"}-REM
1. mysql commands the user to connect to the databaseMySQL command format: mysql-h host address-u user name-P user password(1) Connect to MySQL on this computerFirst open the DOS window, then enter the directory Mysql\bin, and then type the command
SQL * Plus maintains system variables, also known as set variables. It can be used to create a special environment for SQL * Plus interaction, such as: SetSet the display width of the number data, the number of rows per page, and the column width.
1.A, Operation effect Chart
1.B, source code/app_data/sql-basic.sql
Copy Code code as follows:
Use master
Go
if exists (SELECT * from sysdatabases where name= ' db1 ')
Begin
Drop Database DB1
End
Go
Create DATABASE DB1
Go
Use
(iii) chkdsk--check the current status of the disk command
1. Features: Displays the disk status, memory status, and the number of noncontiguous files specified under the specified path.
2. Type: External command
3. Format: CHKDSK [Drive letter:]
Ps:find is a powerful command that matches the regular and finds the corresponding permissions, which can help you pinpoint files in any directory anywhere in your system. The following is the most detailed article on the use of the Find command,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.